﻿@model IEnumerable<HawaiRestaurant.Models.DataContext.Position>

@{
    ViewBag.Title = "ListPosition";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}


<script src="@Url.Content("~/Scripts/jquery.dataTables.js")" type="text/javascript"></script>

@section MyOtherJavascript {
    <script type="text/javascript">
        $(document).ready(function() {
            $('#position').dataTable();
        });
    </script>
}
<h2>ListPosition</h2>

<p>
    @Html.ActionLink("Create New", "CreatePosition")
</p>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="position">
	<thead>
		 <tr>
        <th>
            Id
        </th>
        <th>
            Name
        </th>
             <th></th>
             <th></th>
    </tr>
	</thead>
	<tbody>
		
		@foreach (var item in Model) {
   <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PositionId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
       <td>
           @Html.ActionLink("Edit", "EditPosition", new { id=item.PositionId },new { @class = "useredit"}) 
          
       </td>
       <td>
             @Html.ActionLink("Delete", "DeletePosition", new { id = item.PositionId }, new { @class = "userdelete" })
       </td>
    </tr>
}

	</tbody>
	
</table>

